package com.wish.group05.base.service.impl;

import com.alibaba.fastjson.JSON;
import com.wish.group05.base.dto.ShowDealPerDayDateDto;
import com.wish.group05.base.entity.CwDealPerDay;
import com.wish.group05.base.mapper.CwDealPerDayMapper;
import com.wish.group05.base.service.ICwDealPerDayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wish.group05.base.vo.PaymentPlanVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author houzehui
 * @since 2022-05-23
 */
@Slf4j
@Service
public class CwDealPerDayServiceImpl extends ServiceImpl<CwDealPerDayMapper, CwDealPerDay> implements ICwDealPerDayService {


    @Override
    public PaymentPlanVo searchCwDealPerDayDetailPaySum(ShowDealPerDayDateDto showDealPerDayDateDto) {
        log.info("searchCwDealPerDayDetailPaySum处理Start...");
        log.info("----支出付款金额统计出参：{}",JSON.toJSONString(showDealPerDayDateDto));
        PaymentPlanVo paymentPlanVo = this.getBaseMapper().searchCwDealPerDayDetailPaySum(showDealPerDayDateDto);
        log.info("searchCwDealPerDayDetailPaySum处理End.");
        return paymentPlanVo;
    }
}
